package com.love_weinuo.bean;

import java.util.List;

/**
 * Created by Administrator on 2019/3/24.
 */

public class DrugBean {
    /**
     * errcode : 0
     * msg : success
     * result : {"res":[{"name":"农药1","id":1},{"name":"农药2","id":2},{"name":"农药3","id":3},{"name":"农药4","id":4},{"name":"农药5","id":5}]}
     */
    private int errcode;
    private String msg;
    private ResultEntity result;

    public void setErrcode(int errcode) {
        this.errcode = errcode;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public int getErrcode() {
        return errcode;
    }

    public String getMsg() {
        return msg;
    }

    public ResultEntity getResult() {
        return result;
    }

    public class ResultEntity {
        /**
         * res : [{"name":"农药1","id":1},{"name":"农药2","id":2},{"name":"农药3","id":3},{"name":"农药4","id":4},{"name":"农药5","id":5}]
         */
        private List<ResEntity> res;

        public void setRes(List<ResEntity> res) {
            this.res = res;
        }

        public List<ResEntity> getRes() {
            return res;
        }

        public class ResEntity {
            /**
             * name : 农药1
             * id : 1
             */
            private String name;
            private int id;

            public void setName(String name) {
                this.name = name;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public int getId() {
                return id;
            }
        }
    }
}
